<!DOCTYPE html>
<html>
<head>
<title>编辑菜单</title>
<link th:replace="common/common_css" />
<style type="text/css">
html, body,.form-main {
	height:95%;
}
</style>
</head>
<body>
<div class="form-main">
	<div style="margin-top:10px;"></div>
 	<div class="container-fluid">
        <form role="form" method="post" name="form" id="form">
        	<input type="hidden" name="menuId" th:value="${obj} ? ${obj.menuId}" />
        	<input type="hidden" name="leaf" th:value="${obj} == null? 1 : ${obj.leaf}" />
        	<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
        		<div class="form-group">
        			<label for="menuName">名称<em> *</em></label>
		            <input class="form-control input-sm" name="menuName" type="text" id="menuName" placeholder="请输入名称" th:value="${obj} ? ${obj.menuName}" />        			
        		</div>
        	</div>
        	<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
	            <div class="form-group">
		            <label for="parentName">上级菜单</label>
		            <input type="hidden" name="parentId" id="parentId" th:value="${obj} == null ? 0 : ${obj.parentId}" />
		            <input class="form-control input-sm" type="text" readonly="readonly" id="parentName" placeholder="请选择上级菜单" th:value="${obj} ? ${obj.parentName}" />
		        </div>
        	</div>
        	<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
        		<div class="form-group">
		            <label for="menuType">菜单类型<em> *</em></label>
		            <input type="hidden" th:value="${obj} ? ${obj.menuType}" />
	             	<select class="form-control simpleSelect" name="menuType" id="menuType">
	                  <option value="0">menu</option>
	                  <option value="1">leaf</option>
	                </select>
		        </div>
        	</div>
        	<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
	            <div class="form-group">
		            <label for="icon">菜单图标</label>
		            <input class="form-control input-sm" name="icon" type="text" id="icon" placeholder="请输入菜单图标" th:value="${obj} ? ${obj.icon}" />
		        </div>
        	</div>
        	<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
	            <div class="form-group">
		            <label for="url">URL</label>
		            <input class="form-control input-sm" name="url" type="text" id="url" placeholder="URL" th:value="${obj} ? ${obj.url}" />
		        </div>
        	</div>
        	<div class="col-xs-6 col-sm-6 col-md-6 col-lg-6">
	            <div class="form-group">
		            <label for="sort">排序 <span>为了美观，请按照规则来填写排序</span></label>
		            <input class="form-control input-sm" name="sort" type="text" id="sort" placeholder="排序" th:value="${obj} ? ${obj.sort}" />
		        </div>
        	</div>
        </form>
    </div>
    <div class="b-form-div">
    	<div class="layui-layer-btn layui-layer-btn-c"><a class="layui-layer-btn0 b-btn-save">保存</a><a class="layui-layer-btn1 b-btn-cancel">取消</a></div>
    </div>
</div>
</body>
<script type="text/javascript" th:replace="common/common_js"></script>
<script type="text/javascript" th:src="@{/static/js/sys/menu/menu_edit.js}"></script>
</html>